package com.platform.push.util;

import java.util.Map;

public class FieldUtil {
    public static String replaceFiled(Map<String, String> values, String detail) {
        for (String key : values.keySet()) {
            detail = detail.replaceAll("\\{\\{" + key + "}}", values.get(key));
        }
        return detail.replaceAll("\\{\\{.+}}", "");
    }
}
